/*
    分别实现一台车和一部手机的class
*/
var Car = /** @class */ (function () {
    function Car(n, b, p, c, s) {
        this.name = n;
        this.brand = b;
        this.color = c;
        this.speed = s;
    }
    Car.prototype.func = function () {
        console.log('开着邻居家的 ' + this.name);
    };
    Car.prototype.lahuo = function (arr) {
        return '拉了很多的货' + arr.toString();
    };
    return Car;
}());
var c1 = new Car('Toyota', '丰田', 59, '灰色', 180);
console.log(c1);
c1.func();
console.log(c1.lahuo(['电冰箱', '空调', '洗衣机']));
;
